import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  },
  server: {
    // port: 8887,
    proxy: {
      //'/api': 'http://47.108.150.53:8888'
       '/api': 'http://127.0.0.1:8055'
      // '/api': 'http://127.0.0.1:8888'
    }
  }
})
